//CalculatorGUI.java
//Timothy Grant
//CS1410
//Calculator 1410
//Final Version
package calculator1410;

//import calculatorio.CalculatorExpression;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;

public class CalculatorGUI extends JFrame {

    public CalculatorGUI(String title) {

        super(title);

        JTabbedPane tabbedPane = new JTabbedPane();

        NumberPanel intPanel = new IntegerPanel();
        tabbedPane.addTab("Integer", intPanel.createPanel("Integer"));
        NumberPanel fracPanel = new FractionPanel();
        tabbedPane.addTab("Fraction", fracPanel.createPanel("Fraction"));
        NumberPanel realPanel = new RealPanel();
        tabbedPane.addTab("Real", realPanel.createPanel("Real"));
        NumberPanel compPanel = new ComplexPanel();
        tabbedPane.addTab("Complex", compPanel.createPanel("Complex"));
        //NumberPanel impPanel = new ImpedancePanel();
        //tabbedPane.addTab("Impedance", impPanel.createPanel("Impedance"));

        add(tabbedPane);

        JFrame newFrame = new JFrame();

        newFrame.setLayout(null);
        JTextField myText = new JTextField("0");
        myText.setLocation(25, 50);
        myText.setSize(100, 25);
        newFrame.add(myText);
    }
} // end class CalculatorGUI

